class StringMethods{
	public static void main(String[] args) {
		String str="abcdefg";
		char[] chars=str.toCharArray();
		for(int i=0;i<chars.length;i++) {
			System.out.println(chars[i]);
		}

		char[] partial={'0','0','0','0','0','0','0','0','0','0'};
		str.getChars(1,4,partial,2);

		String strPartial=String.valueOf(partial);
		System.out.println(strPartial);

	}
}
